package 早晨练习0314;

public class MyWord {
    private String word;
    private int wordCount;

    public MyWord(String word, int wordCount) {
        this.word = word;
        this.wordCount = wordCount;
    }

    public int getWordCount() {
        return wordCount;
    }

    public void setWordCount(int wordCount) {
        this.wordCount = wordCount;
    }

    public String getWord() {
        return word;
    }

    public void setWord(String word) {
        this.word = word;
    }

    @Override
    public String toString() {
        return "MyWord{" +
                "word='" + word + '\'' +
                ", wordCount=" + wordCount +
                '}';
    }
}
